curl -X GET "https://emeia.fcsm.io/api/v1/k5/network/projects/{project_id}/networks?subscriptionId=&availabilityZone=&shared=&isExternal="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.K5Api;
import java.io.File;
import java.util.*;
public class K5ApiExample {
public static void main(String[] args) {
K5Api apiInstance = new K5Api();
String subscriptionId = subscriptionId_example; // String | Id of subscription
String projectId = projectId_example; // String | Id of K5 project
String availabilityZone = availabilityZone_example; // String | K5 Availability Zone to filter
Boolean shared = true; // Boolean | Shared parameter to filter networks. If True request will return shared networks, if False networks which are not shered, if missing all networks.
Boolean isExternal = true; // Boolean | External parameter to filter networks. If True request will return external networks, if False networks which are not external, if missing all networks.
try {
array[inline_response_200_23] result = apiInstance.getNetworks(subscriptionId, projectId, availabilityZone, shared, isExternal);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling K5Api#getNetworks");
e.printStackTrace();
}
}
}
import io.swagger.client.api.K5Api;
public class K5ApiExample {
public static void main(String[] args) {
K5Api apiInstance = new K5Api();
String subscriptionId = subscriptionId_example; // String | Id of subscription
String projectId = projectId_example; // String | Id of K5 project
String availabilityZone = availabilityZone_example; // String | K5 Availability Zone to filter
Boolean shared = true; // Boolean | Shared parameter to filter networks. If True request will return shared networks, if False networks which are not shered, if missing all networks.
Boolean isExternal = true; // Boolean | External parameter to filter networks. If True request will return external networks, if False networks which are not external, if missing all networks.
try {
array[inline_response_200_23] result = apiInstance.getNetworks(subscriptionId, projectId, availabilityZone, shared, isExternal);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling K5Api#getNetworks");
e.printStackTrace();
}
}
}
String *subscriptionId = subscriptionId_example; // Id of subscription
String *projectId = projectId_example; // Id of K5 project
String *availabilityZone = availabilityZone_example; // K5 Availability Zone to filter (optional)
Boolean *shared = true; // Shared parameter to filter networks. If True request will return shared networks, if False networks which are not shered, if missing all networks. (optional)
Boolean *isExternal = true; // External parameter to filter networks. If True request will return external networks, if False networks which are not external, if missing all networks. (optional)
K5Api *apiInstance = [[K5Api alloc] init];
// List all networks for given subscription and project
[apiInstance getNetworksWith:subscriptionId
projectId:projectId
availabilityZone:availabilityZone
shared:shared
isExternal:isExternal
completionHandler: ^(array[inline_response_200_23] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var EosSwaggerDefinition = require('eos_swagger_definition');
var api = new EosSwaggerDefinition.K5Api()
var subscriptionId = subscriptionId_example; // {String} Id of subscription
var projectId = projectId_example; // {String} Id of K5 project
var opts = {
'availabilityZone': availabilityZone_example, // {String} K5 Availability Zone to filter
'shared': true, // {Boolean} Shared parameter to filter networks. If True request will return shared networks, if False networks which are not shered, if missing all networks.
'isExternal': true // {Boolean} External parameter to filter networks. If True request will return external networks, if False networks which are not external, if missing all networks.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getNetworks(subscriptionId, projectId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getNetworksExample
{
public void main()
{
var apiInstance = new K5Api();
var subscriptionId = subscriptionId_example; // String | Id of subscription
var projectId = projectId_example; // String | Id of K5 project
var availabilityZone = availabilityZone_example; // String | K5 Availability Zone to filter (optional)
var shared = true; // Boolean | Shared parameter to filter networks. If True request will return shared networks, if False networks which are not shered, if missing all networks. (optional)
var isExternal = true; // Boolean | External parameter to filter networks. If True request will return external networks, if False networks which are not external, if missing all networks. (optional)
try
{
// List all networks for given subscription and project
array[inline_response_200_23] result = apiInstance.getNetworks(subscriptionId, projectId, availabilityZone, shared, isExternal);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling K5Api.getNetworks: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\K5Api();
$subscriptionId = subscriptionId_example; // String | Id of subscription
$projectId = projectId_example; // String | Id of K5 project
$availabilityZone = availabilityZone_example; // String | K5 Availability Zone to filter
$shared = true; // Boolean | Shared parameter to filter networks. If True request will return shared networks, if False networks which are not shered, if missing all networks.
$isExternal = true; // Boolean | External parameter to filter networks. If True request will return external networks, if False networks which are not external, if missing all networks.
try {
$result = $api_instance->getNetworks($subscriptionId, $projectId, $availabilityZone, $shared, $isExternal);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling K5Api->getNetworks: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::K5Api;
my $api_instance = WWW::SwaggerClient::K5Api->new();
my $subscriptionId = subscriptionId_example; # String | Id of subscription
my $projectId = projectId_example; # String | Id of K5 project
my $availabilityZone = availabilityZone_example; # String | K5 Availability Zone to filter
my $shared = true; # Boolean | Shared parameter to filter networks. If True request will return shared networks, if False networks which are not shered, if missing all networks.
my $isExternal = true; # Boolean | External parameter to filter networks. If True request will return external networks, if False networks which are not external, if missing all networks.
eval {
my $result = $api_instance->getNetworks(subscriptionId => $subscriptionId, projectId => $projectId, availabilityZone => $availabilityZone, shared => $shared, isExternal => $isExternal);
print Dumper($result);
};
if ($@) {
warn "Exception when calling K5Api->getNetworks: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.K5Api()
subscriptionId = subscriptionId_example # String | Id of subscription
projectId = projectId_example # String | Id of K5 project
availabilityZone = availabilityZone_example # String | K5 Availability Zone to filter (optional)
shared = true # Boolean | Shared parameter to filter networks. If True request will return shared networks, if False networks which are not shered, if missing all networks. (optional)
isExternal = true # Boolean | External parameter to filter networks. If True request will return external networks, if False networks which are not external, if missing all networks. (optional)
try:
# List all networks for given subscription and project
api_response = api_instance.get_networks(subscriptionId, projectId, availabilityZone=availabilityZone, shared=shared, isExternal=isExternal)
pprint(api_response)
except ApiException as e:
print("Exception when calling K5Api->getNetworks: %s\n" % e)